package git.bds.nyc.role.domain.authentication;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 公司认证表
 * </p>
 *
 * @author 成大事
 * @since 2023-01-11 10:06:59
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("corp_authentication")
@ApiModel(value = "CorpAuthentication对象", description = "公司认证表")
public class CorpAuthentication extends Model<CorpAuthentication> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("认证表的id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("统一社会信用代码")
    @TableField("credit_code")
    private String creditCode;

    @ApiModelProperty("公司名称")
    @TableField("corp_name")
    private String corpName;

    @ApiModelProperty("类型")
    @TableField("corp_type")
    private String corpType;

    @ApiModelProperty("法人代表")
    @TableField("legal_person")
    private String legalPerson;

    @ApiModelProperty("长期")
    @TableField("operating_term")
    private String operatingTerm;

    @ApiModelProperty("成立日期")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty("住所")
    @TableField("location")
    private String location;

    @ApiModelProperty("审核状态(-1：审核不通过；0：未审核；1：审核通过)")
    @TableField("audit_status")
    private Integer auditStatus;

    @ApiModelProperty("认证时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    public static final String ID = "id";

    public static final String CREDIT_CODE = "credit_code";

    public static final String CORP_NAME = "corp_name";

    public static final String CORP_TYPE = "corp_type";

    public static final String LEGAL_PERSON = "legal_person";

    public static final String OPERATING_TERM = "operating_term";

    public static final String CREATE_DATE = "create_date";

    public static final String LOCATION = "location";

    public static final String AUDIT_STATUS = "audit_status";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
